<body class="app" data-ad="true">
<section class="app-content">
	<section class="page page-index noline">
        <div class="search-blk">
            <a class="ico-arr ico-back" href="/"></a>
             <!-- <form action="/index/search" method="get" name="form1" id="form1" onsubmit="search();return false;">-->
                <a href="javascript:search();" class="btn-search fr">搜索</a>
    <!--             onclick="javascript:search();" -->
                <div class="search-r fr">
                    <input type="text" class="search-txt" id="search_product" name="search_product"  title="请输入关键字" placeholder="请输入关键字" autocomplete="off" >
                </div>
<!-- 			</form> -->
        </div>

        <div class="item-list item-list-search">
		<?php if ($this->orgRecommends):?>
			<?php foreach ($this->orgRecommends as $v):?>
            <dl>
                <dt><img src="/mobile/images/temp/product.jpg"></dt>
                <dd>
                    <h3 class="title_s"><?php echo $v['data']['org_name'] ?></h3>
                    <div class="recommend">推荐商品/菜品：
                        <?php  foreach($v['recommended'] as $k1=>$v1):?>
                    	<span><?php echo $v1;?></span>
                    	<?php endforeach;?>
                    <a class="ico-arr ico-down" href="javascript:;"></a></div>
                    <a class="ico-arr ico-right" href="javascript:;"></a>

                </dd>
            </dl>
			<?php endforeach; ?>
		<?php endif;?> 
        </div>
	</section>
	<?php echo $this->partial('public/menu.phtml'); ?>
</section>

<script type="text/javascript">
function search(){
	var searchOrganization = $.trim($("#search_product").val());

	if(searchOrganization.length == 0 || searchOrganization == ''){
		alert('请输入关键字');
		$("#search_product").focus();
		$("#search_product").select();
		return;
	}

	location.href = "/index/search?keyword=" + searchOrganization;
}


</script>